class MultipleCatchDemo
	{
	public void multipleCatchDemo()
		{
		int i=1, j=1;
		int array[] = new int[5];
		try
			{
			int result = i/0;
			}
		catch(ArithmeticException ae)
			{
			System.out.println("Cannot divide by zero");
			}
		try
			{
			int sixthElement =  array[6];
			}
		catch(ArrayIndexOutOfBoundsException aoobe)
			{
			System.out.println("Trying to access a member beyond the reach of an array");
			}
		}
		
	public static void main(String args[])
		{
		MultipleCatchDemo m = new MultipleCatchDemo();
		m.multipleCatchDemo();
		System.out.println("Hello");
		}
	}